<?php
    include "TopSdk.php";
    date_default_timezone_set('Asia/Shanghai'); 

    $c = new TopClient;
    $c->appkey = '23491903';
    $c->secretKey = 'a05621ce6d64bc1df1ff0f57c6fa5f7e';


    $req = new TbkTpwdCreateRequest;
    $req->setUserId("123");
    $req->setText("长度大于5个字符");
    $req->setUrl("https://uland.taobao.com/");
    $req->setLogo("https://uland.taobao.com/");
    $req->setExt("{}");
    $resp = $c->execute($req);
    var_dump($resp);




    $req = new \TbkSpreadGetRequest;
    $requests = new \TbkSpreadRequest;
    $requests->url="https://uland.taobao.com/coupon/edetail?e=pDWipZLl5rkGQASttHIRqbtRUTcOr3R1XwW58fvKr8CkxZansOERvicfpB1S1qM3lCcv7i1%2FkmC1APTUH4ToLJQ5wfGz%2Fu%2BN1fm3aBfYuJLMBAjZVSbr62uFqp8TFaHMonv6QcvcARY%3D&traceId=0bfac28615078955918285861e&activityId=c3f833469791478ba75afd6b5157fa1d";
    $req->setRequests(json_encode($requests));
    $resp = $c->execute($req);
    var_dump($resp);
?>